package com.hh.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName user_behavior
 */
@TableName(value ="user_behavior")
@Data
public class UserBehavior implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 
     */
    @TableField(value = "itemId")
    private Long itemId;

    /**
     * 1:浏览 2:收藏 3:点赞 4:评分
     */
    @TableField(value = "behaviorType")
    private Integer behaviorType;

    /**
     * 评分值(1-5分)
     */
    @TableField(value = "behaviorValue")
    private Float behaviorValue;

    /**
     * 
     */
    @TableField(value = "timestamp")
    private Date timestamp;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}